# -*- coding: utf-8 -*-
"""
Created on Sun Mar 31 21:52:26 2019

@author: LENOVO
"""
def InvestFunc(amount, rate,time):
    amount = float(amount) * rate + float(amount)
    return float(amount)

timeCnt = 1
amount = input('principal amount:')
while timeCnt < 9:
    totalMa = InvestFunc(amount,0.05,timeCnt)
    print('year ',timeCnt,': ',totalMa)
    timeCnt = timeCnt + 1
    amount = totalMa
else :
    print('the end')
    


        